package org.lmw.mm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	static SimpleDateFormat df=new SimpleDateFormat();
	
	//Date转String
	public static String newDate2Str(String pattern){
		df.applyPattern(pattern);
		return df.format(new Date()); 
	}
	
	public static String newDate2Str(){
	  df.applyPattern("yyyy-MM-dd HH:mm:ss");
	  return df.format(new Date()); 
	}
	
	//本周的第一天和最后一天
	public static String[] thisweek(){
		
		
		return null;
	} 
}
